package at.ttasat;

public class CompareFiles {

	public static void main(String[] args) throws Exception {
		if (args.length == 0) {
			System.out.println("CompareFiles <resultFile> <compareToFile>");
			return;
		}
		if (args.length != 2) {
			throw new IllegalArgumentException();
		}
		SolverTestResult result = Util.readTestResult(args[0]);
		SolverTestResult comparisonResult = Util.readTestResult(args[1]); 
		result.printResults();
		System.out.println();
		System.out.println("Compared to:");
		comparisonResult.printResults();
		System.out.println();
		result.printComparison(comparisonResult);
	}
}
